<!--
 * @Author: ChunLai
 * @Date: 2022-01-07 14:02:35
 * @LastEditTime: 2025-09-03 11:46:21
 * @Description: 证件照拍摄示例弹出框
 * @FilePath: \02.bldinsure\src\views\upload\components\ExamplePop.vue
-->
<template>
  <div class="example-pop-md">
    <van-popup
      v-model="showPop"
      lock-scroll
      round
      position="bottom"
      sticky
      @click-overlay="closePop"
    >
      <div class="popup-mode-head">证件示例</div>
      <div class="pop_con">
        <div class="warn-tip" v-if="showWarnTip">
          <span class="tip-txt">
            有效证件影像: 投保时填写的有效身份证明原件的影像资料
          </span>
          <MsImgIcon size="14" name="cross2" @click.native="showWarnTip = false" />
        </div>
        <div class="pics-box">
          <p class="txt-p">身份证正反面影像</p>
          <div class="pics-id">
            <ImgBox pname="eg_sfz1.jpg" />
            <ImgBox pname="eg_sfz2.jpg" />
          </div>
          <p class="txt-p">户口簿户主页/本人页</p>
          <div class="pics-id">
            <ImgBox pname="eg_hkb1.jpg" />
            <ImgBox pname="eg_hkb2.jpg" />
          </div>
          <p class="txt-p">出生医学证明</p>
          <ImgBox pname="eg_csz.jpg" />
          <p class="txt-p">用户自拍照</p>
          <ImgBox pname="eg_face.jpg" />
          <p class="txt-p">军官证个人信息页</p>
          <ImgBox pname="eg_jgz.jpg" />
          <p class="txt-p">护照</p>
          <ImgBox pname="eg_hz.jpg" />
          <p class="txt-p">港澳台民往来大陆通行证</p>
          <ImgBox pname="eg_txz.jpg" />
          <p class="txt-p">台胞证</p>
          <ImgBox pname="eg_tbz.jpg" />
        </div>
      </div>
    </van-popup>
  </div>
</template>

<script>
import ImgBox from "./ImgBox";
export default {
  name: "ExamplePop",
  props: {
    showExamplePop: {
      type: Boolean,
      default: false,
    },
    ocrType: {
      type: String,
      default: "tbr", // bank
    },
  },
  data() {
    return {
      showWarnTip: true,
    };
  },
  components: { ImgBox },
  computed: {
    showPop: {
      get: function () {
        return this.showExamplePop;
      },
      set: function (value) {},
    },
  },
  methods: {
    closePop() {
      this.$emit("closeBtn", false);
    },
  },
};
</script>

<style lang="less" scoped>
.pop_con {
  height: 65vh;
  overflow-y: auto;
}

.warn-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 10px;
  color: #f8ad00;
  background-color: #fdfaf3;

  .tip-txt {
    width: 86%;

    i {
      font-style: normal;
      color: #64d4cf;
    }
  }

  .icon-box {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
    height: 100%;
  }
}

.pics-box {
  padding: 0 14px;

  .txt-p {
    color: #666666;
    line-height: 3;
  }

  .pics-id {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .img-box {
      width: 46%;
    }
  }
}

.img-box2 {
  width: 100%;
}

.example-pop-md {
  /deep/.van-popup__close-icon {
    z-index: 5 !important;
  }
}
</style>
